#!/bin/sh

DAEMON_ARGS="-f -c /etc/cron/crontabs"

. /usr/share/common

start() {
	echo_title "Starting crond"

	if [ ! -f $DAEMON_FULL ]; then
		echo_error "Disabled"
		exit 1
	fi

	start_daemon
}

stop() {
	echo_title "Stopping crond"

	if [ ! -f $DAEMON_FULL ]; then
		echo_error "Disabled"
		exit 1
	fi

	stop_daemon
}

case "$1" in
	start)
		start
		;;
	stop)
		stop
		;;
	restart)
		stop
		sleep 1
		start
		;;
	*)
		echo "Usage: $0 {start|stop|restart}"
		exit 1
		;;
esac

exit 0
